package com.teama4.shop.service;

import com.teama4.shop.domain.Evaluate;
import com.teama4.shop.domain.EvaluateExample;
import com.teama4.shop.mapper.EvaluateMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class EvaluateServiceImpl implements EvaluateService {
    @Autowired
    private EvaluateMapper evaluateMapper;

    @Override
    public long countByExample(EvaluateExample example) {
        return evaluateMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(EvaluateExample example) {
        return evaluateMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return evaluateMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Evaluate record) {
        return evaluateMapper.insert(record);
    }

    @Override
    public int insertSelective(Evaluate record) {
        return evaluateMapper.insertSelective(record);
    }

    @Override
    public List<Evaluate> selectByExample(EvaluateExample example) {
        return evaluateMapper.selectByExample(example);
    }

    @Override
    public Evaluate selectByPrimaryKey(Integer id) {
        return evaluateMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Evaluate record, EvaluateExample example) {
        return evaluateMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Evaluate record, EvaluateExample example) {
        return evaluateMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Evaluate record) {
        return evaluateMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Evaluate record) {
        return evaluateMapper.updateByPrimaryKey(record);
    }
}
